<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:a4j="http://richfaces.org/a4j" xmlns:Jawr="http://jawr.net/tags"
	xmlns:ctg="http://www.crotouristguide.com/taglib">

<ui:composition template="/templates/layout/columns_1.xhtml">
	<ui:define name="column1">
		<s:div styleClass="title">
			<h1><h:outputText value="#{messages['label.istaknute_ponude']}" /></h1>
			<h:outputText value="#{messages['subtitle.posebna_ponuda']} " />
		</s:div>
		<h:form id="tipObjejktaForm">
			<s:decorate id="tipObjektaDecoration"
				template="/templates/editOneRow.xhtml">
				<ui:define name="label">#{messages['label.object.type']}</ui:define>
				<a4j:region>
					<h:selectOneMenu id="tipObjekta" styleClass="field"
						value="#{guides.tipObjekta}"
						valueChangeListener="#{guides.onTipObjektaChaneListener}">
						<a4j:support event="onchange" reRender="objekti"></a4j:support>
						<s:selectItems var="to" value="#{tipoviObjekata}"
							label="#{messages[stringUtil.merge(to.idTipaObjekta)]}"></s:selectItems>
						<s:convertEntity />
					</h:selectOneMenu>
				</a4j:region>
			</s:decorate>

			<rich:dataGrid id="objekti" columns="1" elements="20"
				value="#{specialOffer}" width="590px" styleClass="list50" var="obj"
				cellspacing="0" cellpadding="0">
				<ctg:objektTableDesc obj="#{obj}" opis="true"/>
			</rich:dataGrid>
		</h:form>

	</ui:define>
	<ui:define name="column2">
		<s:cache key="rec_objekti_column2_#{currentLang}"
			region="pageFragments">

		</s:cache>
	</ui:define>

</ui:composition>

</html>